import 'package:flutter/material.dart';

class RegisterNextPage extends StatefulWidget {
  RegisterNextPage({Key key}) : super(key: key);

  @override
  _RegisterNextPageState createState() => _RegisterNextPageState();
}

class _RegisterNextPageState extends State<RegisterNextPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('第二步-验证码') 
      ), 
      body: Center(
        child: Column(
          children: <Widget>[
            SizedBox(height:40),
            Text('请输入验证码'),
            SizedBox(height:20),
            RaisedButton(
            child: Text('下一步'),
            onPressed: () {
              Navigator.pushNamed(context, '/registerThird');

              // 替换路由，将下一步的页面替换成当前页面
              // Navigator.of(context).pushReplacementNamed('/registerThird');
            }
          )
          ], 
        ), 
      ),
    );
  }
}